$(document).ready(
        function() {
            init();
        });
function init() {

    $('#refresh').click(function() {

        $.post('/ajax/showcaptcha/',
                function(data) {

                    $("#captcha").html(data);
                }, 'html');
    });
//    $('#')
    check();

}
function check() {

    $("#registerModel_ConfirmPassword").focusout(
            function() {
                if ($("#registerModel_ConfirmPassword").val() != $("#registerModel_Password").val()) {
                    $("#registerModel_ConfirmPassword").css("border-color", "red");
                    $("#registerModel_Password").css("border-color", "red");
                }
                else {

                    $("#registerModel_ConfirmPassword").css("border-color", "#00c60e");
                    $("#registerModel_Password").css("border-color", "#00c60e");
                }

            }

    );

}

